//
//  Api.swift
//  SwiftSign
//
//  Created by continue on 2021/4/25.
//

import Foundation
import RxSwift
import RxCocoa

protocol SwiftSignAPI {
    func userInit() -> Single<UserInitInfo>
    func getRandUser() -> Single<RandUserInfo>
    func userRegister(username: String, password: String) -> Single<UserInfo>
    func phoneLoginSendCode(phone: String) -> Single<Code>
    func phoneLogin(phone: String, code: String) -> Single<UserInfo>
}
